//package com.thinkgem.jeesite.modules.app.api;
//
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//import java.io.PrintWriter;
////import javax.servlet.annotation.WebServlet;
//
///**
// * Created by zhangpeng on 16/7/31.
// */
////@WebServlet("/portal")
//public class ServerPortal extends HttpServlet {
//         private static final long serialVersionUID = 1L;
//         private static final String token = "weixintest";
//
//                 /**
//           * @see HttpServlet#HttpServlet()
//          */
//                 public ServerPortal() {
//                 super();
//             }
//
//                 /**
//     14      * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
//     15      */
//                 protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//                 String signature = request.getParameter("signature");
//                 String timestamp = request.getParameter("timestamp");
//                 String nonce = request.getParameter("nonce");
//                 String echostr = request.getParameter("echostr");
//                 System.out.println("signature:" + signature);
//                 System.out.println("timestamp:" + timestamp);
//                 System.out.println("nonce:" + nonce);
//                 System.out.println("echostr:" + echostr);
//                 PrintWriter pw = response.getWriter();
//                 pw.append(echostr);
//                 pw.flush();
//             }
//
//                 /**
//     31      * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
//     32      */
//                 protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//                 doGet(request, response);
//             }
//
//             }
